package com.tonann.app.mqtt.dao;

import com.tonann.app.domain.AppSensor;
import org.apache.commons.collections4.map.HashedMap;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class MQTTSensor {
    private MQTTSensor() {
    }

    public Map<String, AppSensor> map = new HashedMap<>();

    public Set<String> topicSet = new HashSet<>();

    public Long count = 0L;

    private static class MQTTSensorHolder {
        public static MQTTSensor instance = new MQTTSensor();
    }

    public static MQTTSensor getInstance() {
        return MQTTSensorHolder.instance;
    }
}
